//传入express的server ，将路径信息分配到controller上
const c=require("../controller/food.server.controller");
function fn_food(app){//形参无所谓什么名字
	app.route("/food/:page")
	.get(c.findAllFood) 
	// .post(c.addUser)
	;

	app.route("/food/pass/:id")
	// .get(c.loadUser)
	.put(c.passStatus)
	// .delete(c.deleteUser);

	app.route("/food/refuse/:id")
	.put(c.refuseStatus)
	app.route("/food/get/passFId")
	.get(c.showPassFIdWS)
}
module.exports= fn_food;